<?php

namespace App\Enums;

use App\Traits\EnumMethods;

enum DnsLine: string
{
    use EnumMethods;

    case DEFAULT = 'default';
    case TELECOM = 'telecom';
    case UNICOM = 'unicom';
    case MOBILE = 'mobile';
    case OVERSEA = 'oversea';
    case EDU = 'edu';
    case DRPENG = 'drpeng';
    case BTVN = 'btvn';

    const LINE_MAP = [
        self::DEFAULT->value => '默认',
        self::TELECOM->value => '电信',
        self::UNICOM->value => '联通',
        self::MOBILE->value => '移动',
        self::OVERSEA->value => '海外',
        self::EDU->value => '教育网',
        self::DRPENG->value => '鹏博士',
        self::BTVN->value => '广电网',
    ];

    public function toString(): string
    {
        return self::LINE_MAP[$this->value];
    }
}
